<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<ui:composition template="../templates/layout.xhtml">

	<ui:define name="content">


		<h2>Registration</h2>
		<fieldset>

			<h:form id="regForm">
				<h:panelGrid id="grid" columns="3" cellpadding="5">
					<h:outputLabel for="firstName">FirstName:</h:outputLabel>
					<p:inputText id="firstName" required="true"
						value="#{registrationBean.regUserVO.firstName}"
						requiredMessage="#{messages.username_reqiured}" />
					<p:message for="firstName" />

					<h:outputLabel for="lastName">LastName:</h:outputLabel>
					<p:inputText id="lastName" required="true"
						value="#{registrationBean.regUserVO.lastName}"
						requiredMessage="#{messages.username_reqiured}" />
					<p:message for="lastName" />

					<h:outputLabel for="username">Username :</h:outputLabel>
					<p:inputText id="username" required="true"
						value="#{registrationBean.regUserVO.username}"
						requiredMessage="#{messages.username_reqiured}" />
					<p:message for="username" />

					<h:outputLabel for="email">Email :</h:outputLabel>
					<p:inputText id="email" required="true"
						value="#{registrationBean.regUserVO.email}"
						requiredMessage="#{messages.username_reqiured}" />
					<p:message for="email" />

					<h:outputLabel for="password">Password:</h:outputLabel>
					<p:password id="password" required="true"
						value="#{registrationBean.password}"
						requiredMessage="#{messages.username_reqiured}" />
					<p:message for="password" />

					<h:outputLabel for="passwordAgain">PasswordAgain:</h:outputLabel>
					<p:password id="passwordAgain" required="true"
						value="#{registrationBean.passwordAgain}"
						requiredMessage="#{messages.username_reqiured}" />
					<p:message for="passwordAgain" />

				</h:panelGrid>
				<p>
					<p:commandButton value="Registration"  stvalidateClient="true" styleClass="formbutton"
						action="#{registrationBean.registration}" update="regForm" />
				</p>


			</h:form>


		</fieldset>



	</ui:define>
</ui:composition>

</html>
